<%@ page language="java" import="java.util.*, model.*" pageEncoding="ISO-8859-1"%>

<%@page import="bean.PollUser"%>
<%@page import="bean.Poll"%>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://"
            + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
    String title = "Home";
  
    ArrayList pa = new ArrayList();
  
    pa = PCmasterImpl.showPollInfo();
  
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head> 
<title>Report</title>
    <style type="text/css">
<!--
.STYLE4 {font-family: "Courier New", Courier, monospace; font-size: 12px; }
.STYLE5 {
    font-family: "Courier New", Courier, monospace;
    font-size: 16px;
}
.STYLE6 {
    font-size: 12px
}
-->
    </style>
  </head>
 
<body>
    <div class='clearboth'></div>
          <div id="PollAdmin">
             <p class="STYLE5">Session History Report<br>
            </p>
            <p class="STYLE5 STYLE6">Time: <%=new Date()%>            </p>
<table border="1" Width="100%" cellpadding="0" cellspacing="0" color="red" bordercolor="#FFFFFF" >
                <thead>
                <tr id="row1" align="left">
                <th bgcolor="#0099FF"><span class="STYLE4">ID</span></th>
                <th bgcolor="#0099FF"><span class="STYLE4">Version</span></th>
                <th bgcolor="#0099FF"><span class="STYLE4">Description</span></th>
                <th bgcolor="#0099FF"><span class="STYLE4">Latitude</span></th>
                <th bgcolor="#0099FF"><span class="STYLE4">Longitude</span></th>
                <th bgcolor="#0099FF"><span class="STYLE4">CreateTime</span></th>
                <th bgcolor="#0099FF"><span class="STYLE4">CreatorName</span></th>
                <th bgcolor="#0099FF"><span class="STYLE4">MasterName</span></th>
                <th bgcolor="#0099FF"><span class="STYLE4">Attendance</span></th>
                </tr>
                </thead>
              
              
                <tbody>
              
                <%
                                    for (int i = 0; i < pa.size(); i++) {
                                  
                                        Poll pb = (Poll) pa.get(i);
                                %>
              
                <tr>      
                <td><span class="STYLE4"><%=pb.getId()%></span></td>
                <td><span class="STYLE4"><%=pb.getVersion()%></span></td>  
                <td><span class="STYLE4"><%=pb.getDescription()%></span></td>
                <td><span class="STYLE4"><%=pb.getLatitude()%></span></td>
                <td><span class="STYLE4"><%=pb.getLongitude()%></span></td>
                <td><span class="STYLE4"><%=pb.getCreatetime()%></span></td>
                <td><span class="STYLE4"><%=pb.getCreator()%></span></td>
                <td><span class="STYLE4"><%=pb.getMaster()%></span></td>
                <td><span class="STYLE4"><%=pb.getAttendance()%></span></td>              
                </tr>
              
                <%
                    }

                      
                %>
                </tbody>
            </table>       
        </div >      
</body>
</html>